#include <iostream>
#include "HIM.h"
//#include "TIL.h"
#include "MOV.h"
//#include "AIP.h"
//#include "ZMO.h"
#include "QSD.h"

using namespace QSDHANDLER;
//HIM* g_Him;
//TIL* g_Til;
//MOV* g_Mov;
//AIP* g_Aip;
//ZMO* g_ZMO;
QSD* g_QSD;
HIM* g_Him;
MOV* g_Mov;


extern "C" __declspec(dllexport) 
int __stdcall LoadHim( char* a_FilePath  )
{
	g_Him = new HIM();
	g_Him->Load( a_FilePath );
	printf( "Check" );
	return g_Him->m_Width;
}

extern "C" __declspec(dllexport) 
int __stdcall Check( int a )
{
	return a;
	//g_Him->Load( );
}

extern "C" __declspec(dllexport) 
	float __stdcall GetHeight( int a_X, int a_Y )
{
	return g_Him->GetHeight( a_X, a_Y );
	//g_Him->Load( );
}

void main()
{
	//g_QSD = new QSD();
	//g_QSD->Load( "C:\\Users\\Jurre\\Desktop\\Test.qsd" );
	g_Mov = new MOV();
	g_Mov->Load( "E:\\Rose\\3DDATA\\MAPS\\JUNON\\JG01\\32_33.mov" );

	//g_Him = new HIM();
	//g_Him->Load("E:\\Rose\\3DDATA\\MAPS\\JUNON\\JG01\\32_33.HIM");

	//g_ZMO = new ZMO();
	//g_ZMO->Load( "E:\\Rose\\3DDATA\\MOTION\\NPC\\7H\\VINCENT\\VINCENT_GREETING.ZMO" );
	//g_ZMO->Show();
	//g_ZMO->Save( "E:\\Rose\\3DDATA\\MOTION\\TEST.ZMO" );
	//

	//g_Aip = new AIP();
	//g_Aip->Load( "C:\\Users\\Jurre\\Desktop\\load.aip" );
	//printf( "-----------\n" );
	//g_Aip->Save( "C:\\Users\\Jurre\\Desktop\\save.aip" );
	//printf( "-----------\n" );
	//g_Aip->Load( "C:\\Users\\Jurre\\Desktop\\save.aip" );
	bool check = true;
	int loop = 1;
	while ( loop )
	{
		if ( std::cin == "c" )
		{
			loop = 0;
		}

	}
}
